package com.dxy.dataManage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dxy.dataManage.bean.User;
import com.dxy.dataManage.mapper.UserMapper;
import com.dxy.dataManage.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author dxy
 * @version 1.0
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Resource
    private UserMapper userMapper;


    @Override
    public boolean save(User entity) {
        return super.save(entity);
    }

    @Override
    public User getByName(String name) {
        return userMapper.getByName(name);
    }
}
